package com.github.phoenics.militia.bazookaFx.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.phoenics.militia.bazookaFx.domain.entity.Entity;
import org.apache.ibatis.annotations.Mapper;

import java.util.stream.Collectors;

/**
 * @author Phoenics Chow
 * on 2019年02月11日
 */
@Mapper
public interface EntityDao extends BaseMapper<Entity> {
    default void deleteEntitiesByAppId(Long appid){
        QueryWrapper<Entity> wrapper=new QueryWrapper<>();
        wrapper.eq("app_id",appid);
        this.delete(wrapper);
    }
}
